cmake_minimum_required(VERSION 3.5.1)
project(osd_plugin)
set(CMAKE_CXX_STANDARD 11)

add_compile_options(-std=c++11 -O3 -Wall)

set(LIBRARY_OUTPUT_PATH ../lib)

include_directories("/usr/local/lynxi/sdk/include/lyn_api/")

if (WITH_CROSS_COMPILE)
    message("cross compile")
    set(CMAKE_CXX_COMPILER "aarch64-linux-gnu-g++")

    include_directories(/usr/local/lynxi/include ../../cpp)
    add_library(OsdPlugin SHARED osd_plugin.cpp)
else()
    message("not compile osd plugin")
endif()
